package Day07ZuoYe;

public class Say {
    public static void main(String[] args) {
        say();
        sayHi("zhangsan");
        sayHello("zhangsan",25);
    }
    //无参无返回值
    public static void say(){
        System.out.println("大家好，我叫Lhq，今年38岁了");
    }
    //有参无返回值
    public static void sayHi(String name){
        System.out.println("大家好，我叫"+name+"今年38岁了");

    }
    //有参无返回值
    public static void sayHello(String name,int age){
        if (age>=40);
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了");

    }
}
